import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import "lib-flexible"; //引入app适配
import reportWebVitals from "./reportWebVitals";

//引入全局的css样式
import "./styles/index.scss";

// 2. 引入 antd   全局的CSS
import "antd/dist/antd.css";

// 3. mobx
import { Provider } from "mobx-react";
import { store } from "./mobx/store";

ReactDOM.render(
  // <React.StrictMode>
  <Provider {...store}>
    <App />
  </Provider>,
  // </React.StrictMode>,
  document.getElementById("root")
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
